<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
    <meta charset="UTF-8">
    <title>注销页面</title>
</head>
<body>
    <h1>欢迎 <span sec:authentication="principal.username"></span>,进入我的系统!</h1>
    <h3>用户信息信息:</h3>
    <!--  认证之后即可取出用户的数据信息  -->
    <ul>
        <li sec:authentication="principal.username"></li>
        <li sec:authentication="principal.authorities"></li>
        <li sec:authentication="principal.accountNonExpired"></li>
        <li sec:authentication="principal.accountNonLocked"></li>
        <li sec:authentication="principal.credentialsNonExpired"></li>
    </ul>
    <hr>
    <!-- 用于注销登录   -->
    <form th:action="@{/logout}" method="get" >
        <input type="submit" th:value="注销">
    </form>
</body>
</html>